package com.sasac.system.controller;

import com.sasac.common.core.domain.R;
import com.sasac.common.core.web.controller.BaseController;
import com.sasac.system.domain.SysConfig;
import com.sasac.test.api.RemoteTestService;
import com.sasac.test.api.model.TestDTO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author sasac
 */
@RestController
@RequestMapping("/test")
public class TestController extends BaseController {

    @Autowired
    private RemoteTestService remoteTestService;

    @GetMapping("/my")
    public R<TestDTO> list(String name) {
        R<TestDTO> info = remoteTestService.getTestInfo(name);
        return info;
    }

}
